echo "Enter root mount partition for fstab: "
read P

cat > /etc/fstab << "EOF"
# Begin /etc/fstab

# file system  mount-point  type     options             dump  fsck
#                                                              order

MNTPART     /           ext4    defaults            1     1
proc	/proc	proc	nosuid,noexec,nodev	0	0
sysfs	/sys	sysfs	nosuid,noexec,nodev	0	0
devpts	/dev/pts	devpts	gid=5,mode=620	0	0
tmpfs	/run	tmpfs	defaults	0	0
devtmpfs	/dev	devtmpfs	mode=0755,nosuid	0	0
 

# End /etc/fstab
EOF

sed -i "s~MNTPART~$P~g" /etc/fstab 
